#include <stdio.h>
#include <math.h>

double getSoundVelocity(double temperature) {
    double result = 331.3 * sqrt(1 + temperature / 273.15);
    return result * 3.6;
    // 单位转换m/s为km/h
}

int main() {
    double velocity, temperature;
    scanf("%lf%lf", &velocity, &temperature);
    double soundVelocity = getSoundVelocity(temperature);
    double mach = velocity / soundVelocity;
    printf("%.3lf ", mach);
    if (mach < 0.8) { printf("subsonic"); }
    else if (mach < 1.2) { printf("transonic"); }
    else if (mach < 5.0) { printf("supersonic"); }
    else { printf("hypersonic"); }
    return 0;
}